local fk__yiyong = fk.CreateSkill {

  name = "fk__yiyong",

  tags = {  },

}

local U = require "packages/utility/utility"


fk__yiyong:addEffect(fk.Damage, {
  name = "fk__yiyong",
  anim_type = "drawcard",
  events = {fk.Damage},
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(fk__yiyong.name) and data.to:getHandcardNum() > player:getHandcardNum()
  end,
  on_use = function (self, event, target, player, data)
    local room = player.room
    player:drawCards(2, fk__yiyong.name)
    room:addPlayerMark(player, "@fk__yiyong-turn")
    room:addPlayerMark(player, MarkEnum.SlashResidue .. "-turn")
  end
})

return fk__yiyong